using Microsoft.AspNetCore.Mvc;

namespace WMS.RealTime.API.Controllers
{
    [ApiController]
    [Route("api/[controller]")]
    public class TestController : ControllerBase
    {
        [HttpGet]
        public IActionResult Get()
        {
            return Ok(new { 
                message = "WMS.RealTime.API 服务运行正常！", 
                timestamp = DateTime.Now,
                status = "success"
            });
        }

        [HttpGet("signalr")]
        public IActionResult GetSignalRInfo()
        {
            return Ok(new { 
                hubUrl = "/dashboardHub",
                message = "SignalR Hub 已配置",
                timestamp = DateTime.Now
            });
        }
    }
} 